package com.lsw.jgyf.model;

import java.util.List;

/**
 * Created by lsw on 2018/7/15.
 */

public class PhoneModel {

    /**
     * data : [{"id":8,"name":"苹果5s","img_url":"http://127.0.0.1/mobile_shop/public/upload/20180623/7b7f1319736602eaa9571191f2445fb9.png","phoneSku":{"id":5,"memory":"4G+64G","phone_id":8,"price":"1200.00","color":"红色","stock_size":1000,"create_time":"2018-06-24 15:50:02","update_time":"2018-06-24 15:50:02","delete_time":null},"phoneBrand":{"id":2,"name":"苹果","title":"苹果手机666","create_time":"2018-06-23 13:26:54","update_time":"2018-06-23 13:26:58","delete_time":null}},{"id":6,"name":"iphone8","img_url":"http://127.0.0.1/mobile_shop/public/upload/20180623/7b7f1319736602eaa9571191f2445fb9.png","phoneSku":{"id":1,"memory":"4G+64G","phone_id":6,"price":"43.00","color":"43432","stock_size":43,"create_time":"2018-06-24 12:43:53","update_time":"2018-06-24 12:43:53","delete_time":null},"phoneBrand":{"id":2,"name":"苹果","title":"苹果手机666","create_time":"2018-06-23 13:26:54","update_time":"2018-06-23 13:26:58","delete_time":null}}]
     * last_page : 1
     * current_page : 1
     * total : 2
     */

    private int last_page;
    private int current_page;
    private int total;
    /**
     * id : 8
     * name : 苹果5s
     * img_url : http://127.0.0.1/mobile_shop/public/upload/20180623/7b7f1319736602eaa9571191f2445fb9.png
     * phoneSku : {"id":5,"memory":"4G+64G","phone_id":8,"price":"1200.00","color":"红色","stock_size":1000,"create_time":"2018-06-24 15:50:02","update_time":"2018-06-24 15:50:02","delete_time":null}
     * phoneBrand : {"id":2,"name":"苹果","title":"苹果手机666","create_time":"2018-06-23 13:26:54","update_time":"2018-06-23 13:26:58","delete_time":null}
     */

    private List<DataEntity> data;

    public void setLast_page(int last_page) {
        this.last_page = last_page;
    }

    public void setCurrent_page(int current_page) {
        this.current_page = current_page;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public void setData(List<DataEntity> data) {
        this.data = data;
    }

    public int getLast_page() {
        return last_page;
    }

    public int getCurrent_page() {
        return current_page;
    }

    public int getTotal() {
        return total;
    }

    public List<DataEntity> getData() {
        return data;
    }

    public static class DataEntity {
        private int id;
        private String name;
        private String img_url;
        private int is_contract;
        /**
         * id : 5
         * memory : 4G+64G
         * phone_id : 8
         * price : 1200.00
         * color : 红色
         * stock_size : 1000
         * create_time : 2018-06-24 15:50:02
         * update_time : 2018-06-24 15:50:02
         * delete_time : null
         */

        private PhoneSkuEntity phoneSku;
        /**
         * id : 2
         * name : 苹果
         * title : 苹果手机666
         * create_time : 2018-06-23 13:26:54
         * update_time : 2018-06-23 13:26:58
         * delete_time : null
         */

        private PhoneBrandEntity phoneBrand;

        public int getIs_contract() {
            return is_contract;
        }

        public void setIs_contract(int is_contract) {
            this.is_contract = is_contract;
        }

        public void setId(int id) {
            this.id = id;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setImg_url(String img_url) {
            this.img_url = img_url;
        }

        public void setPhoneSku(PhoneSkuEntity phoneSku) {
            this.phoneSku = phoneSku;
        }

        public void setPhoneBrand(PhoneBrandEntity phoneBrand) {
            this.phoneBrand = phoneBrand;
        }

        public int getId() {
            return id;
        }

        public String getName() {
            return name;
        }

        public String getImg_url() {
            return img_url;
        }

        public PhoneSkuEntity getPhoneSku() {
            return phoneSku;
        }

        public PhoneBrandEntity getPhoneBrand() {
            return phoneBrand;
        }

        public static class PhoneSkuEntity {
            private int id;
            private String memory;
            private int phone_id;
            private String price;
            private String color;
            private int stock_size;
            private String create_time;
            private String update_time;
            private Object delete_time;

            public void setId(int id) {
                this.id = id;
            }

            public void setMemory(String memory) {
                this.memory = memory;
            }

            public void setPhone_id(int phone_id) {
                this.phone_id = phone_id;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public void setColor(String color) {
                this.color = color;
            }

            public void setStock_size(int stock_size) {
                this.stock_size = stock_size;
            }

            public void setCreate_time(String create_time) {
                this.create_time = create_time;
            }

            public void setUpdate_time(String update_time) {
                this.update_time = update_time;
            }

            public void setDelete_time(Object delete_time) {
                this.delete_time = delete_time;
            }

            public int getId() {
                return id;
            }

            public String getMemory() {
                return memory;
            }

            public int getPhone_id() {
                return phone_id;
            }

            public String getPrice() {
                return price;
            }

            public String getColor() {
                return color;
            }

            public int getStock_size() {
                return stock_size;
            }

            public String getCreate_time() {
                return create_time;
            }

            public String getUpdate_time() {
                return update_time;
            }

            public Object getDelete_time() {
                return delete_time;
            }
        }

        public static class PhoneBrandEntity {
            private int id;
            private String name;
            private String title;
            private String create_time;
            private String update_time;
            private Object delete_time;

            public void setId(int id) {
                this.id = id;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public void setCreate_time(String create_time) {
                this.create_time = create_time;
            }

            public void setUpdate_time(String update_time) {
                this.update_time = update_time;
            }

            public void setDelete_time(Object delete_time) {
                this.delete_time = delete_time;
            }

            public int getId() {
                return id;
            }

            public String getName() {
                return name;
            }

            public String getTitle() {
                return title;
            }

            public String getCreate_time() {
                return create_time;
            }

            public String getUpdate_time() {
                return update_time;
            }

            public Object getDelete_time() {
                return delete_time;
            }
        }
    }
}
